<?php
session_start();

if(!isset($_SESSION['id'])){
	header('Location:login.php');
}
$url=$_POST['url'];

$array=array();
$array=parse_url($url);
$scheme=$array['scheme'];
$host=$array['host'];
$port=$array['port'];
$pj=$scheme."://".$host.":".$port;
//得到升级中心的服务器的地址(写入到文件about_upload.conf)
file_put_contents("about_url.conf",$pj);
?>